<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
    <!-- Content-Security-Policy (CSP) 内容安全策略配置 -->
    <!-- 
    各指令说明:
    default-src 'self': 默认只允许加载同源资源
    script-src 'self' 'unsafe-inline': 允许加载同源脚本和内联脚本
    style-src 'self' 'unsafe-inline': 允许加载同源样式和内联样式
    img-src 'self' data: blob: https://tasklist-cloud.ynaa.net: 允许加载同源图片、Data URL、Blob URL和指定域名的图片
    font-src 'self' data:: 允许加载同源字体和Data URL字体
    connect-src 'self' ...: 允许连接到同源、localhost(各种协议)和指定的tasklist域名、远程API域名
    media-src 'self' data: blob:: 允许加载同源媒体、Data URL和Blob URL
    object-src 'none': 禁止加载所有插件资源(如Flash)
    base-uri 'self': 限制<base>标签的URL只能是同源

    注意: 如需添加远程API访问权限,需要在connect-src中添加对应的API域名,例如:
    connect-src 'self' https://api.example.com
    -->
    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://tasklist-cloud.ynaa.net; font-src 'self' data:; connect-src 'self' http://localhost:* https://*.volces.com ws://localhost:* wss://localhost:* http://tasklist.localhost https://tasklist.localhost http://tasklist.ynaa.net https://tasklist.ynaa.net; media-src 'self' data: blob:; object-src 'none'; base-uri 'self';">
    <title>点点清单</title>
    <style>
      #loadingPage {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f5f5f5;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      }
      
      .loading-container {
        text-align: center;
        color: #333;
      }
      
      .logo {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
      
      .loading-title {
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #333;
        letter-spacing: 1px;
      }
      
      .loading-text {
        font-size: 14px;
        color: #666;
        margin-top: 16px;
      }
      
      /* 深色主题适配 */
      @media (prefers-color-scheme: dark) {
        #loadingPage {
          background: #1a1a1a;
        }
        
        .loading-title {
          color: #fff;
        }
        
        .loading-text {
          color: #999;
        }
      }
    </style>
  </head>
  <body>
    <div id="loadingPage">
      <div class="loading-container">
        <img src="/build/logo.png" alt="点点清单" class="logo">
        <div class="loading-title">点点清单</div>
        <div class="loading-text">正在加载中...</div>
      </div>
    </div>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
